<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>薪资想过万，代码敲三遍</title>
    <script src="./lib/echarts.min.js"></script>
    <style>
        .box {
            width: 800px;
            height: 800px;
            background-color: blanchedalmond;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <div class="box"></div>

    <script>
        const mc = echarts.init(document.querySelector('.box'))
        const option = {
            series: [
                {
                    type: 'pie',
                    data: [
                        {
                            value: 100,
                            name: 'A'
                        },
                        {
                            value: 200,
                            name: 'B'
                        },
                        {
                            value: 300,
                            name: 'C'
                        },
                        {
                            value: 400,
                            name: 'D'
                        },
                        {
                            value: 500,
                            name: 'E'
                        }
                    ],
                    roseType: 'area'
                }
            ]
        };
        mc.setOption(option)
    </script>
</body>

</html>